<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return['worker']=$this->model('model')->checkworker();
if($_RQ['op']=='main'){
	$return['ischecklogin']=model('jy_weishop/member')->checklogin('','','','',true);
	$status=intval($_RQ['status']);
	$return['list']=array();
	$return['params']=array('status'=>$status);
	$month = date('Y-m',strtotime('-1 month'));
	$return['worker']['month']=$month;
	$return['group2']=pdo_get('jy_shopworker_group',array('uniacid'=>$_SESSION['uniacid'],'id'=>$return['worker']['group2id']));
	$return['group2']['shifeeset']=json_decode($return['group2']['shifeeset'],true);
	$return['group2']['feeset']=json_decode($return['group2']['feeset'],true);
	$return['worker']['feeinfo']=$return['worker']['status']==2?$return['group2']['feeset']:$return['group2']['shifeeset'];
	$member=model('core/member')->detail($_SESSION['uid'],array('credit1','credit2','credit3','credit4','credit5','credit6','mobile','avatar','nickname'));
	$return['member']=$member;
	set_html('title','薪资结构');
	exi($return);
}
?>